package com.pym.Service;

import com.github.pagehelper.PageInfo;
import com.pym.pojo.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService{

    boolean deleteByPrimaryKey(Integer id);

    boolean insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer id);

    boolean updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    List<Book> findBookAll();

    PageInfo <Book> finBooAllByCurrentPageAndPageSize(int CurrentPage, int PageSize);
    List<Book> finBooAllByCurrentPageAndPageSizeAndBook(Book book);



}
